package happy.study.clique.module.study.demo1.code;

/**
 * @author fsq
 * @date 2021/11/3 16:36
 **/
public class LimitValidator extends AbstractLimitValidator {

    private LimitValidator() {
    }

    public static boolean hasLimitYear(int mask) {
        return hasMatching(mask, LimitMode.YEAR);
    }

    public static boolean hasLimitMonth(int mask) {
        return hasMatching(mask, LimitMode.MONTH);
    }

    public static boolean hasLimitWeek(int mask) {
        return hasMatching(mask, LimitMode.WEEK);
    }

    public static boolean hasLimitDay(int mask) {
        return hasMatching(mask, LimitMode.DAY);
    }
}
